package com.github.smartheye.fabric.common.user;

import java.io.Serializable;
import java.security.PrivateKey;

import org.hyperledger.fabric.sdk.Enrollment;

public class UserEnrollment implements Enrollment, Serializable {

    private static final long serialVersionUID = -6677326291426893127L;

    private final PrivateKey key;

    private final String cert;

    /**
     * @param key
     * @param cert
     */
    public UserEnrollment(PrivateKey key, String cert) {
        this.key = key;
        this.cert = cert;
    }

    @Override
    public PrivateKey getKey() {
        return key;
    }

    @Override
    public String getCert() {
        return cert;
    }

}
